package com.sfac.springBoot.module.test.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.sfac.springBoot.module.common.entity.AbstractEntity;

import javax.persistence.Entity;
import javax.persistence.OneToOne;
import javax.persistence.Table;

/**
 * personal demo
 **/
@Entity
@Table(name = "test_card")
public class Card extends AbstractEntity {
    private String cardNo;

    @OneToOne(mappedBy = "studentCard")
    @JsonIgnore
    private Student student;

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public Student getStudent() {
        return student;
    }

    public void setStudent(Student student) {
        this.student = student;
    }
}










